package day17.tarena.GUI;
import javax.swing.*;
public class TestIcon {
	public TestIcon(){
		JFrame jf = new JFrame("My Frist");
		Icon ic = new ImageIcon("/home/hfsd0909/TomCat.jpg");
		JLabel jl = new JLabel(ic);
		JButton jb = new JButton(ic);
		jf.add(jl);
		//jf.add(jb);
		jf.setLocation(300,200);
		jf.pack();
		jf.setVisible(true);
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);	
	}

	public static void main(String[] args) {
		new TestIcon();

	}

}
